//ehSimpleJack v1.0
//A plugin by Eric Hushagen based heavily off of poemdexter's work
//and the Balls plugin posted on hey0's forum
//for hey0 mod build 117

import java.util.logging.Logger;
import java.util.List;

public class ehSimpleJack extends Plugin  {

    protected static final Logger log = Logger.getLogger("Minecraft");
    static final ehSimpleJackListener listener = new ehSimpleJackListener();

    public void enable()  {
        log.info("ehSimpleJack plugin enabled");
        tellMods("ehSimpleJack plugin enabled");
    }

    public void disable () {
        log.info("ehSimpleJack plugin disabled");
        tellMods("ehSimpleJack plugin disabled");
    }

    public void initialize() {
        etc.getLoader().addListener(PluginLoader.Hook.LOGIN, listener, this, PluginListener.Priority.MEDIUM);
    }

    public void tellMods(String message) {
        List<Player> pList = etc.getInstance().getServer().getPlayerList();
        for (Player p : pList) {
            if (p.isInGroup("mods")) {
                p.sendMessage(Colors.Rose + message);
            }
        }
    }

    
}
